import request from '@/utils/request'

export function getClassified (params) {
  return request({
    url: '/category/page',
    method: 'get',
    params
  })
}
export function delclassified (params) {
  return request({
    url: '/category',
    method: 'delete',
    params
  })
}
export function addCategory (data) {
  return request({
    url: '/category',
    method: 'post',
    data
  })
}
export function editCategory (data) {
  return request({
    url: '/category',
    method: 'put',
    data
  })
}
